function showImg(voucher_picid){
	var data = voucher_picid.split(',');
	showImgForFina(data);
}
//财务看上传的图片
function showImgForFina(data){
	$('#settleWithholdFinanceFrm #uploadPic').empty();
	$.each(data,function(index,item){
		var $div = $('<div></div>');
		var $img = $('<img/>');
		var url = "/sms/fileUtil/showImg/";
		$img.attr({
			"data-id":item,
			"data-large-url":ctx+url+item,
			"src":ctx+url+item+"",
			"data-large-content":"交易凭证",
			"title":"点击查看大图"
		});
		$img.addClass('img-thumbnail imgFloat');
		$div.addClass('col-md-4');
		$div.append($img);
		//财务
		$('#settleWithholdFinanceFrm #uploadPic').append($div);
		$img.zuiLightBox();
	});
}

function updatePubRepayStatus(){
	var status = $("#dk_status").val();
	if(status == "038001"){
		var reason = $("#reason").val();
		if(reason == "" || reason == null){
			new $.zui.Messager('请输入原因!', {
			    type: 'success',
			    time: 2000,
			    placement:'center'
			}).show();
			return false;
		}
	}
	var url = updatePubRepayStatusAjax.url;
	updatePubRepayStatusAjax.url = updatePubRepayStatusAjax.url+"/"+$("#dk_status").val()+"/"+$("#tran_amt").val();
	updatePubRepayStatusAjax.send();
	updatePubRepayStatusAjax.url = url;
}
function upRepaySuc(data){
	console.log(data);
	if(data.success == true){
		new $.zui.Messager('修改成功!', {
		    type: 'success',
		    time: 2000,
		    placement:'center'
		}).show();
		MsgBox.closeActiveDialog();
		financeDataTable.refresh();
	}
}
